<template>
<div id="charts13" ref="charts13" style="height: 400px;"></div>
</template>
<script>
  export default {
    mounted() {
      this.drawchart()
    },
    methods: {
      drawchart() {
        var option = {
          backgroundColor: 'rgba(255,255,255,0.5)',
          series: {
            type: 'sankey',
            layout: 'none',
            data: [{
              name: '并发症主题'
            }, {
              name: '治疗方案选择'
            }, {
              name: '乳酸性酸中毒'
            }, {
              name: '急性胰腺炎'
            }, {
              name: '联合用药'
            }, {
              name: 'IDF指南'
            }],
            links: [{
              source: '并发症主题',
              target: '乳酸性酸中毒',
              value: 5
            }, {
              source: '并发症主题',
              target: '急性胰腺炎',
              value: 3
            }, {
              source: '治疗方案选择',
              target: '联合用药',
              value: 8
            }, {
              source: '并发症主题',
              target: '联合用药',
              value: 3
            }, {
              source: '联合用药',
              target: '乳酸性酸中毒',
              value: 1
            }, {
              source: '联合用药',
              target: 'IDF指南',
              value: 2
            }]
          }
        };
        var mycharts = this.$echarts.init(this.$refs.charts13)
        mycharts.setOption(option)
      }
    }
  }
</script>
<style></style>

